import request from '@/utils/request'
//查询
export const adminnoteinfoGetService = () => {
  return request.get('noteinfo/search')
}
//添加
export const adminnoteinfoAddService = ({ id, title, content, date }) => {
  return request.post('noteinfo/add', {
    id,
    title,
    content,
    date
  })
}
//更新
export const adminnoteinfoUpService = ({ id, title, content, date }) => {
  return request.put('noteinfo/up', {
    id,
    title,
    content,
    date
  })
}
//删除
export const adminnoteinfoDleService = (id) => {
  return request.delete('noteinfo/delete', {
    params: { id }
  })
}
